package com.cssrc.wenjie.bean;

import com.cssrc.wenjie.hbase.annotation.HBaseColumn;
import com.cssrc.wenjie.hbase.annotation.HBaseRowKey;
import com.cssrc.wenjie.hbase.annotation.HBaseTable;

@HBaseTable(tableName = "student")
public class Student {
    public Student() {
        
    }
    
    public Student(String id,String age,String userName,String school) {
        this.id = id;
        this.age = age;
        this.userName = userName;
        this.school = school;
    }
    
    @HBaseRowKey
    private String id;
    
    @HBaseColumn(family = "info", qualifier = "age")
    private String age;
    
    @HBaseColumn(family = "info", qualifier = "userName")
    private String userName;
    
    @HBaseColumn(family = "info", qualifier = "school")
    private String school;
    
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getAge() {
        return age;
    }
    
    public void setAge(String age) {
        this.age = age;
    }
    
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public String getSchool() {
        return school;
    }
    
    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public String toString() {
        return "Student [id=" + id + ", age=" + age + ", userName=" + userName + ", school=" + school + "]";
    }
}
